<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="/myTest/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/myTest/css/add.css">
    <link rel="stylesheet" type="text/css" href="/myTest/css/style.css">
    <link rel="stylesheet" href="/myTest/css/snowflake.css">
    <!--<link rel="stylesheet" href="/myTest/css/reset.css">
    <link rel="stylesheet" href="/myTest/css/cstyle.css" media="screen" type="text/css" />-->
    <title>登录页面</title>
</head>
<body>
<div>
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    
                </button>
                <a class="navbar-brand" href="#">Brand</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li class="active"><a href="#">Link <span class="sr-only">(current)</span></a></li>
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Dropdown <span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="#">Action</a></li>
                            <li><a href="#">Another action</a></li>
                            <li><a href="#">Something else here</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">Separated link</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="#">One more separated link</a></li>
                        </ul>
                    </li>
                </ul>
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search">
                    </div>
                    <button type="submit" class="btn btn-default">Submit</button>
                </form>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>

    <div id="content">
        <div id="snowflake">

        </div>
    </div>

    <div class="blog_a">
        <div class="blog_b1">

        </div>
        <div class="blog_b2">
            <h1><strong>Login</strong></h1>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon1"><strong>User</strong></span>
                <input type="text" class="form-control" placeholder="Username" aria-describedby="basic-addon1">
            </div>
            <div class="input-group">
                <span class="input-group-addon" id="basic-addon2"><strong>Password</strong></span>
                <input type="password" class="form-control" placeholder="Password" aria-describedby="basic-addon1">
            </div>
            <div class="text-center" >
                <button class="btn btn-primary" href="https://www.baidu.com/?tn=93153557_hao_pg" >Action</button>
                <button id="action" onclick="jQuery(alert('1111'))">111</button>
            </div>
        </div>
    </div>


</div>


<script src="/myTest/bootstrap/script/jquery-3.2.1.slim.min.js"></script>
<script src="/myTest/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/myTest/js/index.js"></script>
<script src="/myTest/jquery.transit-0.9.12/jquery.transit.js"></script>
<script type="text/javascript" >
$(function () {

    var snowflakeURL = [
        /*'/myTest/images/o_1.png',*/
        '/myTest/images/o_1.png',
        '/myTest/images/o_2.png',
        '/myTest/images/o_3.png',
        '/myTest/images/o_4.png',
        '/myTest/images/o_5.png',
        '/myTest/images/o_6.png'
    ]

    var container = $('#content');
    visualWidth = container.width();
    visualHeight = container.height();

    function snowflake() {
        var $flakeContainer = $('#snowflake');


        function getImagesName() {
            return snowflakeURL[[Math.floor(Math.random() * 6)]];
        }

        function creatSnowBox() {
            var url = getImagesName();
            return $('<div class="snowbox"/>').css({
                'width': 41,
                'height': 41,
                'position':'absolute',
                'backgroundSize': 'cover',
                'zIndex': 10000,
                'top': '-41px',
                'backgroundImage': 'url(' + url + ')'
            }).addClass('snowRoll');
        }

        setInterval(function () {
            var startPositionLeft = Math.random() * visualWidth-500,
                startOpacity = 1,
                endPositionTop = visualHeight - 40,
                endPositionLeft = startPositionLeft - 100 + Math.random() * 5000,
                duration = visualHeight * 10 + Math.random() * 5000;

            var randomStart = Math.random();
            /*randomStart = randomStart < 0.5 > startOpacity;randomStart;*/
            randomStart = randomStart < 0.5 ? startOpacity : randomStart;

            var $flake = creatSnowBox();

            $flake.css({
                left: startPositionLeft,
                opacity: randomStart
            });

            $flakeContainer.append($flake);
            $flake.transition({
                top: endPositionTop,
                left: endPositionLeft,
                opacity: 0.7
            }, duration, 'ease-out', function () {
                $(this).remove()
            });
        }, 200);
    }
    snowflake();
})
</script>
<script>
    $(document).ready(function () {
        $("#action").click(function () {
            $("#action").hide();
        })
    })
    console.log(11121111)
</script>

</body>
</html>